{$CLEO .cs}
 
//-------------MAIN---------------
thread 'MINEVC'
 
:MINEVC_1
wait 0
Player.Defined($PLAYER_CHAR) 
jf @MINEVC_1
 
:MINEVC_2
Model.Load(582)
038B: load_requested_models
 
:MINEVC_3
wait 0
Model.Available(582)
jf @MINEVC_3
 
:MINEVC_4
wait 0
Player.Defined($PLAYER_CHAR)
jf @MINEVC_4 
Model.Available(582)
jf @MINEVC_2 
Actor.Driving($PLAYER_ACTOR)
0AB0: key_pressed 49 
jf @MINEVC_4
 
:MINEVC_5
wait 0
8AB0: not key_pressed 49
jf @MINEVC_5 
Player.Defined($PLAYER_CHAR)
jf @MINEVC_4 
Actor.Driving($PLAYER_ACTOR)
jf @MINEVC_4 
0@ = Actor.CurrentCar($PLAYER_ACTOR)
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 -7.5 -0.5
4@ = Object.Create(582, 1@, 2@, 3@)
Object.CollisionDetection(4@) = False
Object.ToggleInMovingList(4@) = False
wait 1500
Object.CollisionDetection(4@) = True
Object.ToggleInMovingList(4@) = True
 
:MINEVC_6
wait 0
Player.Defined($PLAYER_CHAR)
jf @MINEVC_12_2
8039:   NOT 0@ == -1 
jf @MINEVC_7 
00AA: store_car 0@ position_to 5@ 6@ 7@
050A: 7@ = distance_between_XYZ 5@ 6@ 7@ and_XYZ 1@ 2@ 3@
0021:   7@ > 1.0
jf @MINEVC_6 
 
:MINEVC_7
0167: 15@ = create_marker_at 1@ 2@ 3@ color 1 flag 2
16@ = 0 
 
:MINEVC_8
wait 0
Player.Defined($PLAYER_CHAR)
03CA:   object 4@ exists
001B:   60000 > 16@
jf @MINEVC_12 
8AB0: not key_pressed 50
jf @MINEVC_12 
if or
80E1: not  player 0 pressed_button 15
not actor.Driving($PLAYER_ACTOR)
jf @MINEVC_12 
8366: NOT object 4@ damaged
jf @MINEVC_9
0AB0: key_pressed 49
jf @MINEVC_13
 
:MINEVC_9
wait 0
03CA:   object 4@ existse
jf @MINEVC_12 
01BB: store_object 4@ position_to 1@ 2@ 3@
020C: create_explosion_with_radius 7 at 1@ 2@ 3@
020C: create_explosion_with_radius 7 at 1@ 2@ 3@
020C: create_explosion_with_radius 7 at 1@ 2@ 3@
020C: create_explosion_with_radius 7 at 1@ 2@ 3@
0AE2: 7@ = random_vehicle_near_point 1@ 2@ 3@ in_radius 10.0 find_next 0 pass_wrecked 1 
jf @MINEVC_12 
jump @MINEVC_11
 
:MINEVC_10
0AE2: 7@ = random_vehicle_near_point 1@ 2@ 3@ in_radius 10.0 find_next 1 pass_wrecked 1 
jf @MINEVC_12 
 
:MINEVC_11
0137: car 7@ model == #RHINO
jf @MINEVC_10
Actor.Driving($PLAYER_ACTOR)
jf @MINEVC_11_2
0@ = Actor.CurrentCar($PLAYER_ACTOR)
803B:   NOT 7@ == 0@
jf @MINEVC_12 
 
:MINEVC_11_2
02AC: set_car 7@ immunities BP 0 FP 0 EP 0 CP 0 MP 0
02AA: set_car 7@ immune_to_nonplayer 0
01EC: make_car 7@ very_heavy 0
03AB: set_car 7@ strong 0
0224: set_car 7@ health_to 0
020B: explode_car 7@
jump @MINEVC_10 
 
:MINEVC_12
Marker.Disable(15@)
 
:MINEVC_12_2
Object.Destroy(4@)
 
:MINEVC_12_3
wait 0
8AB0: not key_pressed 49
8AB0: not key_pressed 50
jf @MINEVC_12_3 
wait 1000
jump @MINEVC_4 

:MINEVC_13
01BB: store_object 4@ position_to 1@ 2@ 3@
0AE2: 7@ = random_vehicle_near_point 1@ 2@ 3@ in_radius 10.0 find_next 0 pass_wrecked 1 
jf @MINEVC_8
jump @MINEVC_13_2
 
:MINEVC_14
0AE2: 7@ = random_vehicle_near_point 1@ 2@ 3@ in_radius 10.0 find_next 1 pass_wrecked 1 
jf @MINEVC_8
 
:MINEVC_13_2
00AA: store_car 7@ position_to 11@ 12@ 13@ 
050A: 11@ = distance_between_XYZ 1@ 2@ 3@ and_XYZ 11@ 12@ 13@ 
if 
0023:   7.0 > 11@ 
jf @MINEVC_14 
020C: create_explosion_with_radius 7 at 1@ 2@ 3@ 
020C: create_explosion_with_radius 7 at 1@ 2@ 3@ 
020C: create_explosion_with_radius 7 at 1@ 2@ 3@ 
020C: create_explosion_with_radius 7 at 1@ 2@ 3@
jump @MINEVC_14